package com.example.demo.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 * @ClassName FirstListener
 * @Description FirstListener  整合Listener
 * @Author ZX
 * @Date 2020/5/26 10:02
 */
@WebListener
public class FirstListener implements ServletContextListener {

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("Listener 销毁...");
    }

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("Listener 初始化...");
    }
}
